package iceberg.constraints;

import iceberg.violations.ViolationType;

public class WrongLayerForFunctionalityResult implements IConstraintResult {
	private final ViolationType type;

	public WrongLayerForFunctionalityResult(ViolationType type) {
		this.type = type;
	}

	@Override
	public boolean isAllowed() {
		return false;
	}

	@Override
	public ViolationType getType() {
		return type;
	}

	@Override
	public String getName() {
		return "Wrong functionality for layer";
	}
}
